package com.example.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Service;

import com.example.network.Server;

@Service
public class AchorService implements ApplicationRunner {
    @Autowired
    private Server server;

    public void ServerStart() {
        server.start();
    }

    @Override
    public void run(ApplicationArguments args) {
        ServerStart();
    }
}
